<?php

require_once('config.php');

$server = check_server();



if ($server == 1):

    if (isset($_SESSION['username'])):

        echo "<h2>Bem Vindo <a href='logout.php' class='linkSair'>[Sair]</a></h2>";

        echo $_SESSION['nome'];

    else:

        ?>

        <h2>Identifique-se</h2>

        <form method="POST" action="http://smtp.fals.com.br:8081/validamural.asp">

            <table style="font-family:verdana; font-size:12px;" align="center" width="200px">

                <tr>

                    <td>Matricula</td>

                </tr>

                <tr>

                    <td><input name="username" type="text" maxlength="10" size="28"></td>

                </tr>

                <tr>

                    <td>Senha</td>

                </tr>

                <tr>

                    <td><input name="password" type="password" maxlength="50" size="28"></td>

                </tr>

                <tr>

                    <td colspan="2" align="center"><input class="botao" name="submit" type="submit" value="Login"></td>

                </tr>

            </table>

        </form>

    <?php

    endif;

else:

    echo "Server fora do Ar";

endif;

?>